Conditions | 1 |
Paths | 1 |
Total Lines | 21 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | /** |
||
10 | export function setupVmWithLocalVue() { |
||
11 | let LocalVue = createLocalVue() |
||
12 | LocalVue.config.productionTip = false |
||
13 | LocalVue.use(Plugin) |
||
14 | |||
15 | let node = document.createElement("div") |
||
16 | node.id = 'app' |
||
17 | document.querySelector('body').appendChild(node) |
||
18 | |||
19 | return (new LocalVue({ |
||
20 | methods: { |
||
21 | triggerAlert(){ |
||
22 | return this.$dialog.alert('Simple Alert') |
||
23 | }, |
||
24 | triggerConfirm(){ |
||
25 | return this.$dialog.confirm('Please confirm') |
||
26 | }, |
||
27 | clickDialogBtn |
||
28 | } |
||
29 | })).$mount(node) |
||
30 | } |
||
31 | |||
51 |